package com.hwbsite.hwbback.entity;

import com.hwbsite.hwbback.entity.group.IdGroup;
import com.hwbsite.hwbback.entity.group.ProductGroup;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Date;

@Data
public class WeiboPublishDTO {

        @NotBlank(groups =  ProductGroup.class ,message = "微博文字不能为空")
        private String content;

        @NotNull(groups =  ProductGroup.class ,message = "微博是否有文件不能为空")
        private boolean hasFile;

        @NotBlank(groups =  IdGroup.class, message = "微博id不能为空")
        private String id;

        private MultipartFile file;

        /***
         * 1 图片 2 视频 3 livephoto
         */
        @NotNull(groups =  IdGroup.class, message = "文件类型不能为空")
        private int type;

        @NotNull(groups =  IdGroup.class, message = "排序不能为空")
        private Integer order;

        private String startTime;

        private String endTime;
}
